package cn.java86.myschool.dao;

import cn.java86.myschool.entity.Grade;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GradeDao {
    public int add(Grade s); //增加
    public int update(Grade s); //修改
    public int del(long Grade); //删除
    public Grade get(long Grade); //根据id查询
    public List<Grade> getAll(); //查询所有

    public List<Grade> paging(@Param("pageNo") int pageNo,@Param("pageSize") int pageSize,@Param("gname")String gname);
    public long pageTotal(@Param("gname")String gname);
}
